//
//  UdpClient.h
//  socketDemo
//
//  Created by 吳瀾洲 on 2020/8/3.
//  Copyright © 2020 kingboyrang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UdpConfigDefine.h"

NS_ASSUME_NONNULL_BEGIN

@interface UdpManager : NSObject

+ (UdpManager *)shareInstance;

//连接状态
@property (nonatomic,copy) UDPConnectStateChangedBlock connectStateChangedBlock;
//发送完成
@property (nonatomic,copy) UDPSendDataBlock sendDataBlock;

//发送数据
- (void)sendData:(NSData *)data port:(uint16_t)port toHost:(NSString *)host;
- (void)sendData:(NSData *)data port:(uint16_t)port toHost:(NSString *)host tag:(NSInteger)tag;

//网络唤醒
- (void)wakeUp:(NSString *)macAddress host:(NSString *)host port:(uint16_t)port;


@end

NS_ASSUME_NONNULL_END
